package com.ruowei.modules.foodOrder.pojo.dto;

import com.ruowei.modules.foodOrder.domain.MerchandiseSku;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class SkuPriceDTO {
    @ApiModelProperty(value = "sku编码")
    private String skuCode;

    @ApiModelProperty(value = "价格")
    private BigDecimal price;

    public SkuPriceDTO(MerchandiseSku sku) {
        this.skuCode = sku.getSkuCode();
        this.price = sku.getUnitPrice();
    }
}
